package com.syf;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * admin-service启动类
 */
@SpringBootApplication
@EnableDiscoveryClient   //注册中心发现，扫描该服务nacos
@EnableFeignClients      //扫描和注册Openfeign客户端bean定义【将feign接口生成一个对象放在spring容器中】
public class AdminServiceApplication {

    public static void main(String[] args) {
        SpringApplication.run(AdminServiceApplication.class ,args) ;
    }
}
